# 1037 简单：有效地回旋镖

def isBoomerang(points):
    # k1 = 1.0 * (points[0][1] - points[1][1]) / (points[0][0] - points[1][0]) if points[0][0] != points[1][0] else -1
    # k2 = 1.0 * (points[1][1] - points[2][1]) / (points[1][0] - points[2][0]) if points[1][0] != points[2][0] else -1
    # return k1 == k2

    # 三点共线  叉乘
    v1 = (points[1][0] - points[0][0], points[1][1] - points[0][1])
    v2 = (points[2][0] - points[0][0], points[2][1] - points[0][1])
    return v1[0] * v2[1] - v1[1] * v2[0] != 0

